package 剑指offer;

import java.util.HashMap;

/**
 * @description:
 * @author: ywk
 * @date: 2020-12-10
 */
public class list去重 {static   void distinctArr(int[] arrL, int[] arrR) {
    HashMap<Integer, Integer> map = new HashMap<>();
    for (int i : arrL) {
        map.put(i, i);
    }
    for (int i : arrR) {
        map.get(i);
    }
}
    public static void main(String[] args) {
        int[] arrL = {1, 2, 3, 4};
        int[] arrR = {2, 3, 5};
        distinctArr(arrL, arrR);
    }
}
